<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>gvn.repository.Repository</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css"></link>
</head>
<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">

<!-- =========== START OF NAVBAR =========== -->
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="center">
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="gvn-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar" align="right" width="100%">
      <table border="0" cellpadding="0" cellspacing="0">
      <tr><th class="navbar" align="center">
        <p class="nomargin">
          <a class="navbar" target="_top" href="http://code.google.com/p/gvn/">Project&nbsp;Homepage</a>
      </p></th></tr></table>
    </th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <font size="-1"><b class="breadcrumbs">
        <a href="gvn-module.html">Package&nbsp;gvn</a> ::
        <a href="gvn.repository-module.html">Module&nbsp;repository</a> ::
        Class&nbsp;Repository
      </b></font></br>
    </td>
    <td><table cellpadding="0" cellspacing="0">
      <tr><td align="right"><font size="-2">[<a href="../private/gvn.repository.Repository-class.html">show&nbsp;private</a>&nbsp;|&nbsp;hide&nbsp;private]</font></td></tr>
      <tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a>&nbsp;|&nbsp;<a href="gvn.repository.Repository-class.html" target="_top">no&nbsp;frames</a>]</font></td></tr>
    </table></td>
</tr></table>

<!-- =========== START OF CLASS DESCRIPTION =========== -->
<h2 class="class">Type Repository</h2>

<pre class="base-tree">
<a href="__builtin__.object-class.html"><code>object</code></a> --+
         |
        <b>Repository</b>
</pre><br />

<hr/>


<!-- =========== START OF METHOD SUMMARY =========== -->
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="summary">
  <th colspan="2">Method Summary</th></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="gvn.repository.Repository-class.html#__init__" class="summary-sig-name"><code>__init__</code></a>(<span class=summary-sig-arg>self</span>,
          <span class=summary-sig-arg>username</span>,
          <span class=summary-sig-arg>url</span>,
          <span class=summary-sig-arg>config</span>,
          <span class=summary-sig-arg>pool</span>)</span></code>
<br />
Initialize Repository from str, str, Config, Pool.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="gvn.repository.Repository-class.html#GetHead" class="summary-sig-name"><code>GetHead</code></a>(<span class=summary-sig-arg>self</span>,
          <span class=summary-sig-arg>pool</span>)</span></code>
<br />
Return the HEAD revision number of this repository.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="gvn.repository.Repository-class.html#GetRevisions" class="summary-sig-name"><code>GetRevisions</code></a>(<span class=summary-sig-arg>self</span>,
          <span class=summary-sig-arg>paths</span>,
          <span class=summary-sig-arg>start</span>,
          <span class=summary-sig-arg>end</span>,
          <span class=summary-sig-arg>peg</span>,
          <span class=summary-sig-arg>limit</span>,
          <span class=summary-sig-arg>strict_node_history</span>)</span></code>
<br />
Return a list of Revisions, possibly by asking .ra for the log of 
paths.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><a name="GetRevProp"></a><span class="summary-sig"><span class="summary-sig-name">GetRevProp</span>(<span class=summary-sig-arg>self</span>,
          <span class=summary-sig-arg>revision</span>,
          <span class=summary-sig-arg>propname</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="gvn.repository.Repository-class.html#LongToShortURL" class="summary-sig-name"><code>LongToShortURL</code></a>(<span class=summary-sig-arg>self</span>,
          <span class=summary-sig-arg>long_url</span>)</span></code>
<br />
Convert a fully qualified (long) URL to a short URL.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="gvn.repository.Repository-class.html#ShortToLongURL" class="summary-sig-name"><code>ShortToLongURL</code></a>(<span class=summary-sig-arg>self</span>,
          <span class=summary-sig-arg>short_url</span>)</span></code>
<br />
Convert short_url to a fully qualified (long) URL.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><a name="Stat"></a><span class="summary-sig"><span class="summary-sig-name">Stat</span>(<span class=summary-sig-arg>self</span>,
          <span class=summary-sig-arg>path</span>,
          <span class=summary-sig-arg>peg</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="gvn.repository.Repository-class.html#URL" class="summary-sig-name"><code>URL</code></a>(<span class=summary-sig-arg>self</span>,
          <span class=summary-sig-arg>path</span>)</span></code>
<br />
Return URL of path, or repository root if path is unspecified.</td></tr>
<tr bgcolor="#e8f0f8" class="group">
  <th colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;Inherited from object</th></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__delattr__" class="summary-sig-name"><code>__delattr__</code></a>(<span class="summary-sig-vararg">...</span>)</span></code>
<br />
x.__delattr__('name') &lt;==&gt; del x.name</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__getattribute__" class="summary-sig-name"><code>__getattribute__</code></a>(<span class="summary-sig-vararg">...</span>)</span></code>
<br />
x.__getattribute__('name') &lt;==&gt; x.name</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__hash__" class="summary-sig-name"><code>__hash__</code></a>(<span class=summary-sig-arg>x</span>)</span></code>
<br />
x.__hash__() &lt;==&gt; hash(x)</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__new__" class="summary-sig-name"><code>__new__</code></a>(<span class=summary-sig-arg>T</span>,
          <span class=summary-sig-arg>S</span>,
          <span class="summary-sig-vararg">...</span>)</span></code>
<br />
T.__new__(S, ...) -&gt; a new object with type S, a subtype of T</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__reduce__" class="summary-sig-name"><code>__reduce__</code></a>(<span class="summary-sig-vararg">...</span>)</span></code>
<br />
helper for pickle</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__reduce_ex__" class="summary-sig-name"><code>__reduce_ex__</code></a>(<span class="summary-sig-vararg">...</span>)</span></code>
<br />
helper for pickle</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__repr__" class="summary-sig-name"><code>__repr__</code></a>(<span class=summary-sig-arg>x</span>)</span></code>
<br />
x.__repr__() &lt;==&gt; repr(x)</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__setattr__" class="summary-sig-name"><code>__setattr__</code></a>(<span class="summary-sig-vararg">...</span>)</span></code>
<br />
x.__setattr__('name', value) &lt;==&gt; x.name = value</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__str__" class="summary-sig-name"><code>__str__</code></a>(<span class=summary-sig-arg>x</span>)</span></code>
<br />
x.__str__() &lt;==&gt; str(x)</td></tr>
</table><br />


<!-- =========== START OF PROPERTY SUMMARY =========== -->
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="summary">
  <th colspan="2">Property Summary</th></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><b><a href="gvn.repository.Repository-class.html#have_root_url"><code>have_root_url</code></a></b>: Whether this Repository was created with the root URL.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><a name="ra"></a><b><code>ra</code></b></td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><b><a href="gvn.repository.Repository-class.html#username"><code>username</code></a></b></td></tr></table><br />


<!-- =========== START OF METHOD DETAILS =========== -->
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="details">
  <th colspan="2">Method Details</th></tr>
</table>

<a name="__init__"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
  <h3><span class="sig"><span class="sig-name">__init__</span>(<span class=sig-arg>self</span>,
          <span class=sig-arg>username</span>,
          <span class=sig-arg>url</span>,
          <span class=sig-arg>config</span>,
          <span class=sig-arg>pool</span>)</span>
    <br /><i>(Constructor)</i>
  </h3>
  <p>Initialize Repository from str, str, Config, Pool.</p>
  url must be in canonical form (i.e. as returned by 
  svn_path_canonicalize).
  <dl><dt></dt><dd>
    <dl><dt><b>Overrides:</b></dt>
      <dd><a href="__builtin__.object-class.html#__init__"><code>__builtin__.object.__init__</code></a></dd>
    </dl>
  </dd></dl>
</td></tr></table>

<a name="GetHead"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
  <h3><span class="sig"><span class="sig-name">GetHead</span>(<span class=sig-arg>self</span>,
          <span class=sig-arg>pool</span>=<span class=sig-default>None</span>)</span>
  </h3>
  Return the HEAD revision number of this repository.
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>

<a name="GetRevisions"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
  <h3><span class="sig"><span class="sig-name">GetRevisions</span>(<span class=sig-arg>self</span>,
          <span class=sig-arg>paths</span>=<span class=sig-default>['']</span>,
          <span class=sig-arg>start</span>=<span class=sig-default>None</span>,
          <span class=sig-arg>end</span>=<span class=sig-default>None</span>,
          <span class=sig-arg>peg</span>=<span class=sig-default>None</span>,
          <span class=sig-arg>limit</span>=<span class=sig-default>0</span>,
          <span class=sig-arg>strict_node_history</span>=<span class=sig-default>False</span>)</span>
  </h3>
  <p>Return a list of Revisions, possibly by asking .ra for the log of 
  paths.</p>
  <p>To get a Revision for a specific revision, specify only start; all 
  other arguments are redundant. Returned list is ordered from start to 
  end regardless which is higher.</p>
  <p>For any revision, the same Revision object is returned every 
  time.</p>
  <p>If this is called a second time with the same arguments, it won't 
  hit the repository at all.</p>
  Arguments: paths -- paths whose revisions to include; default all 
  start -- revision number to start log end -- revision number to end log 
  peg -- peg revision for paths limit -- return at most this many 
  Revisions strict_node_history -- do not trace back to copyfrom
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>

<a name="LongToShortURL"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
  <h3><span class="sig"><span class="sig-name">LongToShortURL</span>(<span class=sig-arg>self</span>,
          <span class=sig-arg>long_url</span>)</span>
  </h3>
<pre class="literalblock">
Convert a fully qualified (long) URL to a short URL.

Returns a string with the leading repository root URL replaced by '//'
or raises PathNotChild if 'long_url' does not begin with the
repository root.

Raises:
  AttributeError  (if long_url is not a string)
  gvn.errors.PathNotChild  (if long_url does not begin with the
                             repository root)
</pre>
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>

<a name="ShortToLongURL"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
  <h3><span class="sig"><span class="sig-name">ShortToLongURL</span>(<span class=sig-arg>self</span>,
          <span class=sig-arg>short_url</span>)</span>
  </h3>
<pre class="literalblock">
Convert short_url to a fully qualified (long) URL.

Returns a string with the leading '//' replaced by the repository root
URL or raises NotShortURL if 'short_url' does not begin with '//'.

Raises:
  AttributeError  (if short_url is not a string)
  gvn.errors.NotShortURL  (if short_url is not in &quot;short form&quot;)
</pre>
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>

<a name="URL"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
  <h3><span class="sig"><span class="sig-name">URL</span>(<span class=sig-arg>self</span>,
          <span class=sig-arg>path</span>=<span class=sig-default>None</span>)</span>
  </h3>
  Return URL of path, or repository root if path is unspecified.
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
<br />


<!-- =========== START OF PROPERTY DETAILS =========== -->
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="details">
  <th colspan="2">Property Details</th></tr>
</table>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>

<a name="have_root_url"></a>
<h3>have_root_url</h3>
<p>Whether this Repository was created with the root URL.</p>
Defaults to False, meaning this object must contact the repository 
(hitting the network, for remote repositories) to learn if self.URL() is 
the repository root.
<dl>
  <dt></dt>
  <dd>
    <dl>
      <dt><b>Get Method:</b></dt>
      <dd><span class="summary-sig"><span class="summary-sig-name">unknown-136719636</span>(...)</span>
      </dd>
      <dt><b>Set Method:</b></dt>
      <dd><span class="summary-sig"><span class="summary-sig-name">unknown-136719692</span>(...)</span>
      </dd>
    </dl>
  </dd>
</dl></td></tr></table><table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>

<a name="username"></a>
<h3>username</h3>
<dl>
  <dt></dt>
  <dd>
    <dl>
      <dt><b>Get Method:</b></dt>
      <dd><span class="summary-sig"><span class="summary-sig-name">unknown-136719748</span>(...)</span>
      </dd>
    </dl>
  </dd>
</dl></td></tr></table><br />


<!-- =========== START OF NAVBAR =========== -->
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="center">
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="gvn-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar" align="right" width="100%">
      <table border="0" cellpadding="0" cellspacing="0">
      <tr><th class="navbar" align="center">
        <p class="nomargin">
          <a class="navbar" target="_top" href="http://code.google.com/p/gvn/">Project&nbsp;Homepage</a>
      </p></th></tr></table>
    </th>
  </tr>
</table>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td align="left"><font size="-2">Generated by Epydoc 2.1 on Tue Jul 17 16:51:46 2007</font></td>
    <td align="right"><a href="http://epydoc.sourceforge.net"
                      ><font size="-2">http://epydoc.sf.net</font></a></td>
  </tr>
</table>
</body>
</html>
